package com.sdgs.app.dto;

import com.sdgs.paas.sdk.core.PaasBaseObject;

import lombok.Data;

@Data
public class PageInfoDTO extends PaasBaseObject {
    /**
     * 默认值当前页
     */
    public   static  int  PAGEINDEX=1;

    public static  int PAGESIZE=200;
    /**
     * 当前页，分页查询时需传
     */
    private Integer page=PAGEINDEX;
    /**
     * 每页数量，分页查询时需传
     */
    private Integer pageSize=PAGESIZE;
    /**
     * 总页数
     */
    private Integer pageCount;
    /**
     * 总记录数
     */
    private Integer rowCount;



    @Override
    public String toString() {
        return "PageInfoDTO{" +
                "page=" + page +
                ", pageSize=" + pageSize +
                ", pageCount=" + pageCount +
                ", rowCount=" + rowCount +
                '}';
    }
}
